<?php
/**
 * 发仔 <i@fazi.me>
 */
namespace app\open\model;

use think\model;
use traits\model\SoftDelete;
class CarInsurance extends model
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $autoWriteTimestamp = true;

    public function car(){
        return $this->hasOne('Car','car_id','car_id','','left')->setEagerlyType(0);
    }

    public function service(){
        return $this->hasOne('service','service_id','service_id','','left')->setEagerlyType(0);
    }
}